<?php

namespace app\common\enums;

class LevelTypeEnum extends BaseEnum
{
    // 定义常量
    public const E1 = '1';
    public const E2 = '2';

    // 定义描述
    public array $description = [
        self::E1 => '超级校区',
        self::E2 => '合伙人'
    ];


    public function getOpenLevelType($levelType)
    {
        switch ($levelType) {
            case self::E1:
                return [self::E1, self::E2];
            case self::E2:
                return [self::E2];
            default:
                return [];
        }
    }
}
